package com.zwy.ubts.dao;

import com.zwy.ubts.bean.Order;
import com.zwy.ubts.bean.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author zwy
 * @Description:
 * @Date Created in 13:54 2022/12/23
 */
public interface UserDao extends BaseDao {
    User login(User user);
    Integer addUser(User user);
    User selectUserByName(User user);
    User selectUserByEMail(User user);
    User selectUserById(User user);
    //修改密码
    Integer updatePassword(User user);
    Integer updateUserMoneyById(@Param("userId") Integer userId,@Param("money") Float money);
    List<User> selectUser();//查询全部的用户
    List<User> selectUserByRole(@Param("userRole") Integer userRole); //查询指定用户
}
